﻿using System;
using System.Collections.Generic;
namespace SymbolEditor.WpfLibrary.Serialize
{
    interface IXamlSymbolResourceDictSerializer
    {
        /// <summary>
        /// deserialize object from the xaml stream
        /// </summary>
        /// <returns>return the instance of class ResourceDictionary </returns>
        System.Windows.ResourceDictionary Read();
        /// <summary>
        /// serialize instance into xaml format
        /// </summary>
        /// <returns></returns>
        string Save();
        /// <summary>
        /// Get or set the stream of the xaml ,the root node of which is ResourceDictionary
        /// </summary>
        System.IO.Stream Xamlstream { get; set; }
        /// <summary>
        /// Get the dictionary of symbols in xaml format 
        /// </summary>
        Dictionary<string, string> XamlSymbols
        {
            get;            
        }
        /// <summary>
        /// the footer of the serialize xaml document
        /// </summary>
        string XmalRDFooter { get; set; }
        /// <summary>
        /// the hander of the serialize xaml document
        /// </summary>
        string XmalRDHander { get; set; }
    }
}
